package zhu.areas.match.data;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import zhu.areas.user.data.User;

/**
 * @hibernate.class  table="T_CompApp"   dynamic-insert="true"  dynamic-update="true" lazy="false"
 * @author Administrator
 *
 */
public class CompApp implements java.io.Serializable{

	private int compID;//大赛ID	
	private User applier; //申请方ID		
	private String applierName;//申请方姓名
	private Date appTime;//申请时间
	private String compName;//大赛名称
	private String compSummary;//大赛概要
	private String compDetail;//大赛详情
	private String appPattern;//报名方式
	private Date appEndDate;//报名截止日期
	private String community;//联系方式
	private String pAddress;//附件在服务器地址
	private String attachmentName;//附件名称
	private MatchType ptype;//大赛种类（字典
	
	private MatchStatue statue;//当前状态（字典）
	public int cMoney;//预计金额
	public int ownMoney;//已有金额
	private Date pubTime;//发布时间
	
	private Set attenderSet = new HashSet(0);
	private Set  sponserSet = new HashSet(0);
	
	public CompApp(int compID){
		this.compID=compID;
	}
	public CompApp(){
		
	}
	/**
	 * @hibernate.id column="CompID"  generator-class="increment"  unsaved-value="null"
	 * @return
	 */
	public int getCompID() {
		return compID;
	}
	public void setCompID(int compID) {
		this.compID = compID;
	}
	/** 
	*@hibernate.many-to-one class="zhu.areas.user.data.User"	  not-null="true"
	* column="ApplierID" 
	*/
	public User getApplier() {
		return applier;
	}
	public void setApplier(User applier) {
		this.applier = applier;
	}
	/**
	 * @hibernate.property column = "ApplierName"
	 * @return
	 */
	public String getApplierName() {
		return applierName;
	}
	public void setApplierName(String applierName) {
		this.applierName = applierName;
	}
	/**
	 * @hibernate.property column = "AppTime"
	 * @return
	 */
	public Date getAppTime() {
		return appTime;
	}
	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}
	/**
	 * @hibernate.property column = "Compname"
	 * @return
	 */
	public String getCompName() {
		return compName;
	}
	public void setCompName(String compname) {
		this.compName = compname;
	}
	/**
	 * @hibernate.property column = "CompSummary"
	 * @return
	 */
	public String getCompSummary() {
		return compSummary;
	}
	public void setCompSummary(String compSummary) {
		this.compSummary = compSummary;
	}
	/**
	 * @hibernate.property column = "CompDetail"
	 * @return
	 */
	public String getCompDetail() {
		return compDetail;
	}
	public void setCompDetail(String compDetail) {
		this.compDetail = compDetail;
	}
	/**
	 * @hibernate.property column = "AppPattern"
	 * @return
	 */
	public String getAppPattern() {
		return appPattern;
	}
	public void setAppPattern(String appPattern) {
		this.appPattern = appPattern;
	}
	/**
	 * @hibernate.property column = "AppEndDate"
	 * @return
	 */
	public Date getAppEndDate() {
		return appEndDate;
	}
	public void setAppEndDate(Date appEndDate) {
		this.appEndDate = appEndDate;
	}
	/**
	 * @hibernate.property column = "Community"
	 * @return
	 */
	public String getCommunity() {
		return community;
	}
	public void setCommunity(String community) {
		this.community = community;
	}
	/**
	 * @hibernate.property column = "AttachmentName"
	 * @return
	 */
	public String getAttachmentName() {
		return this.attachmentName;
	}
	public void setAttachmentName(String attachmentName) {
		this.attachmentName = attachmentName;
	}

	/**
	 * @hibernate.property column = "PAddress"
	 * @return
	 */
	public String getpAddress() {
		return pAddress;
	}
	public void setpAddress(String pAddress) {
		this.pAddress = pAddress;
	}
	/**
	 * @hibernate.property column = "CMoney"
	 * @return
	 */
	public int getcMoney() {
		return cMoney;
	}
	public void setcMoney(int cMoney) {
		this.cMoney = cMoney;
	}
	/**
	 * @hibernate.property column = "OwnMoney"
	 * @return
	 */
	public int getOwnMoney() {
		return ownMoney;
	}
	public void setOwnMoney(int ownMoney) {
		this.ownMoney = ownMoney;
	}
	/**
	 * @hibernate.property column = "PubTime"
	 * @return
	 */
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	/** 
	*@hibernate.many-to-one class="zhu.areas.match.data.MatchType"  lazy="true" not-null="true"
	* column="Ptype" 
	*/
	public MatchType getPtype() {
		return ptype;
	}

	public void setPtype(MatchType ptype) {
		this.ptype = ptype;
	}
	/** 
	*@hibernate.many-to-one class="zhu.areas.match.data.MatchStatue"  lazy="true"	  not-null="true"
	* column="Statue" 
	*/
	public MatchStatue getStatue() {
		return statue;
	}

	public void setStatue(MatchStatue statue) {
		this.statue = statue;
	}


	/**
	 * @hibernate.set table="T_AttendList" inverse="true"  lazy="true"
	 * @hibernate.collection-key column="CompID"
	 * @hibernate.collection-one-to-many class="zhu.areas.match.data.AttendList"
	 */
	public Set getAttenderSet() {
		return attenderSet;
	}

	public void setAttenderSet(Set attenderSet) {
		this.attenderSet = attenderSet;
	}

	/**
	 * @hibernate.set table="T_Sponsor" inverse="true"	lazy="true"
	 * @hibernate.collection-key column="CompID"
	 * @hibernate.collection-one-to-many class="zhu.areas.match.data.Sponsor"
	 */
	public Set getSponserSet() {
		return sponserSet;
	}
	public void setSponserSet(Set sponserSet) {
		this.sponserSet = sponserSet;
	}

	
}
